<?php

class Application_Form_Grupo extends Zend_Form
{

    public function init()
    {
        $this->setName('grupo');
        $id = new Zend_Form_Element_Hidden('idgrupo');
        $id->addFilter('Int');
        $grupo = new Zend_Form_Element_Text('grupo');
        $grupo->setLabel('Grupo')
            ->setRequired(true)
            ->addFilter('StripTags')
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty');
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('idgrupo', 'submitbutton');
        $this->addElements(array($id, $grupo, $submit));
    }


}

